package com.compty.paint.manager;

import java.util.List;

import com.compty.core.hibernate.HibernateEntityDao;
import com.compty.paint.domain.ImageInfo;

public class ImageInfoManager  extends HibernateEntityDao<ImageInfo>{
	
	
	/**
	 *@Todo:删除集合
	 *@CreateTime:2011-9-20 上午08:58:34
	 * @param idList
	 */
	public void deleteByIds(List<Long> idList){
		
		if(idList == null) return;
		
		for (Long id : idList) {
			
			super.removeById(id);
		}
	}
	
	public void delete(ImageInfo imageInfo){
		
		if(imageInfo == null)  return ;
		
		super.remove(imageInfo);
	}

	public void deleteById(Long imageId) {
		// TODO Auto-generated method stub
		if(imageId == null)  return;
		
		super.removeById(imageId);
	}
	
	public ImageInfo findById(Long id){
		ImageInfo imageInfo = get(id);
		return imageInfo;
	}
}
